package org.demo.honor.convert;


import java.util.List;
import org.demo.honor.pojo.entity.OrderEntity;
import org.demo.honor.pojo.response.OrderResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface OrderConvert {

    OrderConvert INSTANCE = Mappers.getMapper(OrderConvert.class);

    OrderResponse covertEntity2Rep(OrderEntity orderEntity);

    List<OrderResponse> covertEntityList2RepList(List<OrderEntity> orderEntities);
}
